<p>
    <% if $ShopLink %>
        <a href="$ShopLink">Shop</a>
    <% end_if %>

    <% if $CategoriesLink %>
        <% if $CategoryTitle %>
            / <a href="$CategoriesLink">categoies</a>
        <% else %>
            / <span>categoies</span>
        <% end_if %>
    <% end_if %>

    <% if $CategoryTitle %>
        <% if $CategoryLink && $CategoryTitle %>
            / <span><a href="$CategoryLink">$CategoryTitle</a></span>
        <% else_if not $CategoryLink && $CategoryTitle %>
            / <span>$CategoryTitle</span>
        <% end_if %>

        <% if $ProductLink && $ProductTitle %>
            / <span><a href="$ProductLink">$ProductTitle</a></span>
        <% else_if $ProductTitle %>
            / <span>$ProductTitle</span>
        <% end_if %>
    <% end_if %>
</p>